package com.summary.mapper;

import com.summary.domain.Clocking;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;


/**
 * 请假业务Mapper接口
 *
 * @author NightWalk
 * @date 2023-12-26
 */
public interface ClockingMapper
{

    /**
     * 查询请假业务列表
     *
     * @param
     * @return 请假业务集合
     */

    List<Clocking> selectClockingList(Clocking Clocking);
    /**
     * 新增请假业务
     *
     * @param clocking 请假业务
     * @return 结果
     */
    public int insertClocking(Clocking clocking);


    List<Clocking> selectClockingByUserId(Long userId);

    @Delete("delete from sys_clocking where clocking_id = #{clockingId}")
    int deleteClocking(Long clockingId);

    int updateClockingType(Clocking clocking);

    @Select("select * from sys_clocking where clocking_id = #{clockingId}")
    Clocking selectClocking(Long clockingId);
}
